#include "LUA_Events.h"

void registerCommands_luaEvents(lua_State* L){
	lua_register(L,"registerEvent",registerEvent);
}

int registerEvent(lua_State* L){
	const char* FunctionName = lua_tostring(L, -1);
	lua_pop(L,1);
	const char* EventType = lua_tostring(L, -1);
	lua_pop(L,1);	
	
	printf(EventType);
	printf(FunctionName);

	std::list<const char*> findEle = Events[EventType];

	printf("%i",findEle.empty());

	return 0;
}
